package com.exmaple.dblianxiwj.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class dbHelper extends SQLiteOpenHelper {

	private static final String DB_NAME = "mydiary.db";
	private static final int DB_VERSION = 1;

	public dbHelper(Context context) {
		super(context, DB_NAME, null, DB_VERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("create table diary(_id integer primary key autoincrement,title varchar(20),content varchar(1000),createtime,picnum )");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
        
	}

}
